package com.caesar.exer2;

import java.util.ArrayList;

/**
 * @author caesar
 * @date 2025/7/21
 * @Description:
 * @apiNote
 */
public class SharedList {
    private ArrayList<Integer> list = new ArrayList<>();
    public synchronized void addElement(int value){
        list.add(value);
    }
    public int getSize(){
        return list.size();
    }
}
